/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package objectoriented.interfaceclass;

/**
 *
 * @author peng
 */
public class Dog implements Movements {

    /*
     * Implementing the required methods:
     * running()
     * jumping()
     * eating()
     * working()
     * You are free to implement any other
     * methods than the above.
     */
    
    @Override
    public void running() {
        System.out.println("A dog is running.");
    }

    @Override
    public void jumping() {
        System.out.println("A dog is jumping.");
    }

    @Override
    public void eating() {
        System.out.println("A dog is eating.");
    }

    @Override
    public void working() {
        System.out.println("A dog is working.");
    }
    
    public static void main(String args[])
    {
        //Initiating a dog object
        Dog d = new Dog();
        
        //Calls the following methods on d
        d.running();
        d.jumping();
        d.eating();
        d.working();
    }
    
}
